ROCFrontSF105 = readROCDataDir('D:\Usagers\matre697\Maitrise\HaarTraining\colosse_opencv220\front\results\sf105\');
ROCFrontSF110 = readROCDataDir('D:\Usagers\matre697\Maitrise\HaarTraining\colosse_opencv220\front\results\sf110\');
ROCFrontSF120 = readROCDataDir('D:\Usagers\matre697\Maitrise\HaarTraining\colosse_opencv220\front\results\sf120\');

ROCSideSF105 = readROCDataDir('D:\Usagers\matre697\Maitrise\HaarTraining\colosse_opencv220\side\results\sf105\');
ROCSideSF110 = readROCDataDir('D:\Usagers\matre697\Maitrise\HaarTraining\colosse_opencv220\side\results\sf110\');
ROCSideSF120 = readROCDataDir('D:\Usagers\matre697\Maitrise\HaarTraining\colosse_opencv220\side\results\sf120\');

ROCRearSF105 = readROCDataDir('D:\Usagers\matre697\Maitrise\HaarTraining\colosse_opencv220\rear\results\sf105\');
ROCRearSF110 = readROCDataDir('D:\Usagers\matre697\Maitrise\HaarTraining\colosse_opencv220\rear\results\sf110\');
ROCRearSF120 = readROCDataDir('D:\Usagers\matre697\Maitrise\HaarTraining\colosse_opencv220\rear\results\sf120\');

zFront = zeros(24,1);
for i=1:8
    zFront(i) = trapzBound(ROCFrontSF105(:,4,i),ROCFrontSF105(:,3,i),0.15);
end
for i=1:8
    zFront(i+8) = trapzBound(ROCFrontSF110(:,4,i),ROCFrontSF110(:,3,i),0.15);
end
for i=1:8
    zFront(i+16) = trapzBound(ROCFrontSF120(:,4,i),ROCFrontSF120(:,3,i),0.15);
end
zFront = zFront/0.15;
[whoCare zFrontBestIdx] = max(zFront);

zRear = zeros(24,1);
for i=1:8
    zRear(i) = trapzBound(ROCRearSF105(:,4,i),ROCRearSF105(:,3,i),0.1);
end
for i=1:8
    zRear(i+8) = trapzBound(ROCRearSF110(:,4,i),ROCRearSF110(:,3,i),0.1);
end
for i=1:8
    zRear(i+16) = trapzBound(ROCRearSF120(:,4,i),ROCRearSF120(:,3,i),0.1);
end
zRear = zRear/0.1;
[whoCare zRearBestIdx] = max(zRear);

zSide = zeros(24,1);
for i=1:8
    zSide(i) = trapzBound(ROCSideSF105(:,4,i),ROCSideSF105(:,3,i),0.04);
end
for i=1:8
    zSide(i+8) = trapzBound(ROCSideSF110(:,4,i),ROCSideSF110(:,3,i),0.04);
end
for i=1:8
    zSide(i+16) = trapzBound(ROCSideSF120(:,4,i),ROCSideSF120(:,3,i),0.04);
end
zSide = zSide/0.04;
[whoCare zSideBestIdx] = max(zSide);

clear whoCare i;
